﻿@using PAMD.Extension
@if (Request.IsAuthenticated)
{
    var controller = HttpContext.Current.Request.RequestContext.RouteData.Values["Controller"].ToString();
    controller = controller.ToString();
    var currentMenu = "current-menu-item";
    using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" }))
    {
    <ul id="nav" class="sf-menu">
        <li @Html.Css("class", currentMenu, controller== "Home")><a href="@Url.Action("Index", "Home")">Home<span
            class="subheader">Welcome</span></a></li>
        <li @Html.Css("class", currentMenu, controller=="Profile")><a href="@Url.Action("Index", "Profile")">
            Profile<span class="subheader">View Update</span></a>
            <ul>
                <li><a href="@Url.Action("Index", "Profile")"><span>View</span></a></li>
                <li><a href="@Url.Action("Edit", "Profile")"><span>Update</span></a></li>
                <li><a href="@Url.Action("ChangePassword", "Profile")"><span>Change Password</span></a></li>
                <li><a href="@Url.Action("Settings", "Profile")"><span>Settings</span></a></li>
            </ul>
        </li>
       <li @Html.Css("class", currentMenu, controller == "Listing")><a href="@Url.Action("Index", "Listing")">Spaces<span class="subheader">My Spaces</span></a>
            <ul>
                <li><a href="@Url.Action("ListAll", "Listing")"><span>List All Spaces</span></a></li>
                <li><a href="@Url.Action("Addnew", "Listing")"><span>Add New Spaces </span></a></li>
                <li><a href="@Url.Action("Active", "Listing")"><span>Active Spaces</span></a></li>
                <li><a href="@Url.Action("InActive", "Listing")"><span>InActive Spaces</span></a></li>
            </ul>
        </li>
        <li @Html.Css("class", currentMenu, controller == "Bookings")><a href="@Url.Action("Index", "Bookings")">Bookings<span class="subheader">Recent
                       Booking</span></a>
            <ul>
                <li><a href="@Url.Action("Today", "Bookings")"><span>Today's Bookings</span></a></li>
                <li><a href="@Url.Action("Active", "Bookings")"><span>Active Bookings</span></a></li>
                <li><a href="@Url.Action("Cancelled", "Bookings")"><span>Cancelled Bookings</span></a></li>
            </ul>
        </li>
       <li @Html.Css("class", currentMenu, controller == "Enquiries")><a href="@Url.Action("Index", "Enquiries")">Enquiries<span class="subheader">Recent
                       update</span></a>
            <ul>
                <li><a href="@Url.Action("Space", "Enquiries")"><span>Space Enquiries</span></a></li>
                <li><a href="@Url.Action("Events", "Enquiries")"><span>Events Enquiries</span></a></li>
            </ul>
        </li>
        <li @Html.Css("class", currentMenu, controller == "Review")><a href="@Url.Action("Index", "Review")">Review<span class="subheader">Feeback</span></a>
            <ul>
                <li><a href="@Url.Action("All", "Review")"><span>All</span></a></li>
                <li><a href="@Url.Action("Positive", "Review")"><span>Positive</span></a></li>
                <li><a href="@Url.Action("Negative", "Review")"><span>Negative</span></a></li>
                <li><a href="@Url.Action("Neutral", "Review")"><span>Neutral</span></a></li>
            </ul>
        </li>
       <li @Html.Css("class", currentMenu, controller == "Gallery")><a href="@Url.Action("Index", "Gallery")">Gallery<span class="subheader">Read our
                       post</span></a>
            <ul>
                <li><a href="@Url.Action("Gallery", "Photo")"><span>My Pictures</span></a></li>
                <li><a href="@Url.Action("Index", "Blog")"><span>Blog</span></a></li>
            </ul>
        </li>
        <li @Html.Css("class", currentMenu, controller == "contact")><a href="@Url.Action("Index", "contact")">Contact<span class="subheader">Get in touch</span></a></li>
    </ul>
    }
}
else
{   
    <ul id="nav" class="sf-menu">
        <li><a href="@Url.Action("Index", "Home")"><span>Home</span></a></li>
        <li><a href="@Url.Action("Login", "Account")"><span>Login</span></a></li>
        <li><a href="@Url.Action("Index", "Register")"><span>Join</span></a></li>
        <li><a href="features-toggle.html"><span>Help</span></a></li>
        <li><a href="features-infobox.html"><span>Contact</span></a></li>
    </ul>
}
